package com.infore.qualityControl.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 日质控实体类
 * @author Cold
 *
 */
@Entity
@Table(name="DAY_QUALITY_CONTROL")
@NamedQuery(name="DayQualityControl.findAll", query="SELECT d FROM DayQualityControl d")
public class DayQualityControl implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;
	
	/** 审核人 **/
	@Column(name="AUDIT_PERSON")
	private String auditPerson;
	
	/** 审核时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="AUDIT_TIME")
	private Date auditTime;
	
	/** 审核标识 **/
	@Column(name="AUDIT_FLAG")
	private String auditFlag;
	
	/** 指标编码 **/
	@Column(name="INDEX_CODE")
	private String indexCode;
	
	/** 指标名称 **/
	@Column(name="INDEX_NAME")
	private String indexName;
	
	/** 指标单位 **/
	@Column(name="INDEX_UNIT")
	private String indexUnit;
	
	/** 跨度标准溶液浓度 **/
	@Column(name="SPAN_STANDARD_VALUE")
	private Double spanStandardValue;
	
	/** 跨度值 **/
	@Column(name="SPAN_VALUE")
	private Double spanValue;
	
	/** 站点ID **/
	@Column(name="STATION_CODE")
	private String stationCode;
	
	/** 提交人 **/
	@Column(name="SUBMIT_PERSON")
	private String submitPerson;
	
	/** 提交时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="SUBMIT_TIME")
	private Date submitTime;
	
	/** 零点标准溶液浓度 **/
	@Column(name="ZERO_STANDARD_VALUE")
	private Double zeroStandardValue;
	
	/** 各监测项总记录数 **/
	@Transient
	private String indexCount;
	
	/** 单因子使用设置的参数运行时间 **/
	@Transient
	private String operatingTime;
	
	/** 单因子使用设置的参数质控次数 **/
	@Transient
	private Integer qualityNumber;
	
	/** 单因子使用设置的参数不合格次数 **/
	@Transient
	private Integer unqualifiedNumber;

	public DayQualityControl() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAuditPerson() {
		return this.auditPerson;
	}

	public void setAuditPerson(String auditPerson) {
		this.auditPerson = auditPerson;
	}

	public Date getAuditTime() {
		return this.auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}
	
	public String getAuditFlag() {
		return auditFlag;
	}

	public void setAuditFlag(String auditFlag) {
		this.auditFlag = auditFlag;
	}

	public String getIndexCode() {
		return this.indexCode;
	}

	public void setIndexCode(String indexCode) {
		this.indexCode = indexCode;
	}

	public String getIndexName() {
		return this.indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexUnit() {
		return this.indexUnit;
	}

	public void setIndexUnit(String indexUnit) {
		this.indexUnit = indexUnit;
	}

	public Double getSpanStandardValue() {
		return this.spanStandardValue;
	}

	public void setSpanStandardValue(Double spanStandardValue) {
		this.spanStandardValue = spanStandardValue;
	}

	public Double getSpanValue() {
		return this.spanValue;
	}

	public void setSpanValue(Double spanValue) {
		this.spanValue = spanValue;
	}

	public String getStationCode() {
		return this.stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getSubmitPerson() {
		return this.submitPerson;
	}

	public void setSubmitPerson(String submitPerson) {
		this.submitPerson = submitPerson;
	}

	public Date getSubmitTime() {
		return this.submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Double getZeroStandardValue() {
		return this.zeroStandardValue;
	}

	public void setZeroStandardValue(Double zeroStandardValue) {
		this.zeroStandardValue = zeroStandardValue;
	}

	public String getIndexCount() {
		return indexCount;
	}

	public void setIndexCount(String indexCount) {
		this.indexCount = indexCount;
	}

	public String getOperatingTime() {
		return operatingTime;
	}

	public void setOperatingTime(String operatingTime) {
		this.operatingTime = operatingTime;
	}

	public Integer getQualityNumber() {
		return qualityNumber;
	}

	public void setQualityNumber(Integer qualityNumber) {
		this.qualityNumber = qualityNumber;
	}

	public Integer getUnqualifiedNumber() {
		return unqualifiedNumber;
	}

	public void setUnqualifiedNumber(Integer unqualifiedNumber) {
		this.unqualifiedNumber = unqualifiedNumber;
	}
	
}